import mongoose from "mongoose";
const menuesRuler = new mongoose.Schema({
  name: { type: String, unique: true },
  path: { type: String, unique: true },
  icon: { type: String, default: "Plus" },
  level: { type: Number, default: 1 },
  // id: { type: Number, unique: true },
  parentId: { type: String, default: 0 },
  hidden: { type: Boolean, default: false },
  order: { type: Number, default: 0 },
  desc:{type: String,}
  // operatorId: { type: mongoose.Types.ObjectId || null, defalt: null },
});
const menuesModel = mongoose.model("menuesModel", menuesRuler);
export default menuesModel;
